Skip to content

fix(id): update probe for signer authorization - #8785

Closed
dezren39 wants to merge 1 commit into
mainfrom
sweep/8756-probe-attestation-sign
Closed

dezren39 wants to merge 1 commit into
mainfrom
sweep/8756-probe-attestation-sign

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Problem

probe_attestation_sign no longer compiled after sign_claim gained its &GenesisAgreement argument. The probe also asserted obsolete behavior: non-player signers are now rejected.

Solution

Pass the agreement at each claim-signing call, assert SignError::NotAPlayer for outsider genesis and claim signatures, and keep controls for accepted player signatures and duplicate-seat rejection.

Closes #8756.

Verification

  • ~/tools/fleet-build-lock cargo test --manifest-path pkgs/id/Cargo.toml --test probe_attestation_sign
  • rustfmt --check --edition 2024 pkgs/id/tests/probe_attestation_sign.rs
  • git diff --check

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Tests
    • Expanded regression coverage to verify that signers outside an agreement’s player seats are rejected when signing genesis data or claims.
    • Retained checks that player signatures succeed and agreements with duplicate player seats are rejected.
    • Removed checks that treated signatures from non-player signers as successful or verified that their claims were ignored.

@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 22:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T22:35:04.407402Z f771d36 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The attestation signing probe now passes a genesis agreement to sign_claim. It expects SignError::NotAPlayer for non-player signers and retains checks for valid player signatures and duplicate player seats.

Changes: Attestation signing probe

Layer / File(s) Summary
Signer membership checks
pkgs/id/tests/probe_attestation_sign.rs
The probe updates its sign_claim call and asserts that non-player signers are rejected for genesis and claim signing. It also checks successful player signatures and duplicate-seat rejection.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other · Severity of issue fixed: Medium

Possibly related issues

  • Issue 6487 describes refusing signatures from non-players at signing time. This PR adds probe assertions for that behavior but does not change the signing implementation.
Merge Risk: Minimal · up to f771d

This change updates a test probe so it compiles with the new sign_claim signature and checks that non-player signers are rejected. It has no production impact, and no actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(id): update probe for signer authorization" names the main change. The raw summary says the probe now expects sign_genesis and sign_claim to return SignError::NotAPlayer for a signer ou…
Linked Issues check Passed Objective [#8756]: update the sign_claim call sites in pkgs/id/tests/probe_attestation_sign.rs to pass the &GenesisAgreement argument. The diff against the merge base changes the claim calls to …
Out of Scope Changes check Passed All reviewed changes are in pkgs/id/tests/probe_attestation_sign.rs. They update the sign_claim call sites required by #8756. They also change the probe's asserted behavior to `SignError::NotAPlay…
Full details: Title check

Explanation

The title "fix(id): update probe for signer authorization" names the main change. The raw summary says the probe now expects sign_genesis and sign_claim to return SignError::NotAPlayer for a signer outside the agreement's player seats, and the objectives describe the same change. The title is specific and concise, so it passes.

Full details: Linked Issues check

Explanation

Objective [#8756]: update the sign_claim call sites in pkgs/id/tests/probe_attestation_sign.rs to pass the &GenesisAgreement argument. The diff against the merge base changes the claim calls to sign_claim(&x, 0, None, &agreement, &claim, vec![]) and sign_claim(&stranger, 0, None, &agreement, &claim, vec![]). This matches the 6-argument signature quoted in the issue, with the agreement in argument #4. The diff also removes the obsolete assertions that non-player signatures succeed. Two points remain unverified. First, the PR does not show a full pkgs/id workspace cargo test run. The issue's acceptance wording mentions that run, but the PR reports only the single target. Second, I could not read attestation.rs at head to confirm that SignError::NotAPlayer exists and is returned for non-player seats. The compile fix itself is supported by the diff.

Full details: Out of Scope Changes check

Explanation

All reviewed changes are in pkgs/id/tests/probe_attestation_sign.rs. They update the sign_claim call sites required by #8756. They also change the probe's asserted behavior to SignError::NotAPlayer for outsider genesis and claim signatures. The PR description states this as the reason for the change, and the diff keeps the player-signature and duplicate-seat controls. The removed checks (stranger genesis succeeds, compute_state ignores a stranger claim) test the obsolete behavior named in the PR description. No unrelated production code or other files were shown as changed in the reviewed diff. I did not confirm the full PR file list, so this verdict covers only the reviewed diff.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Clippy (1.99.1)

Clippy execution timed out

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2473a222-4d32-4cf0-9b21-eb1f8a18f626
Commits

Reviewing files that changed from the base of the PR and between 7f14ad8 and f771d36.

Files selected for processing: 1

  • pkgs/id/tests/probe_attestation_sign.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@dezren39

Copy link
Copy Markdown
Member Author

Agent note — task 17212 (lane any-b): PR #8785 closed as superseded by PR #8972 — nothing unique to salvage

Evidence (all fresh this shift):

Closing this PR as superseded (not merged). Issue #8756 is closed with the same evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkgs/id: probe_attestation_sign test target does not compile on main (sign_claim gained &GenesisAgreement arg)

1 participant